<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimum-scale=1.0, maximum-scale=1.0">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-touch-fullscreen" content="yes">
    <meta name="full-screen" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="format-detection" content="telephone=no">
    <meta name="format-detection" content="address=no">
    <title>青少年宫</title>
  </head>
  <body>
    <div id="app"></div>
    <!-- built files will be auto injected -->
  <script>
    //以下代码为删除嵌入广告
    var del_times = 0, deTimer = null;
    function adGo() {
      var iframe = document.getElementsByTagName('iframe')[0];
      if(iframe){
        console.log(iframe)
//循环 iframe 父类，直到找到body和body的下一级，然后整个嵌入的代码删除。
        var bodyNode = {tagName:''}, iframeParent, targetNode = iframe.parentNode;
        while (bodyNode.tagName != 'BODY'){
          bodyNode = targetNode;
          if(bodyNode.tagName != 'BODY'){
            iframeParent = targetNode;
            targetNode = targetNode.parentNode;
          }
        }
        if(iframeParent) //如果iframe有父类
          bodyNode.removeChild(iframeParent);
        else
          bodyNode.removeChild(iframe);
      }
      del_times++;
      if (del_times > 10) window.clearInterval(deTimer)
    }
    deTimer = self.setInterval(adGo, 1000); //把这个1000, 调低一点，比如200

  </script>
  </body>
</html>
